projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13337d5
)
(delete-horizontal-space): Handle minibuffer prompt.
author
Gerd Moellmann
<gerd@gnu.org>
Tue, 28 Nov 2000 11:54:12 +0000
(11:54 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Tue, 28 Nov 2000 11:54:12 +0000
(11:54 +0000)
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index 0e70e83a1572cbce0afa230841f0f83e4866dba1..13020a98a52ba1cd364518979c49a49d134348bc 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-333,7
+333,8
@@
Leave one space or none, according to the context."
"Delete all spaces and tabs around point."
(interactive "*")
(skip-chars-backward " \t")
- (delete-region (point) (progn (skip-chars-forward " \t") (point))))
+ (let ((start (max (minibuffer-prompt-end) (point))))
+ (delete-region start (progn (skip-chars-forward " \t") (point)))))
(defun just-one-space ()
"Delete all spaces and tabs around point, leaving one space."